<?php
/**
 * Backend_bs component.
 *
 * @package    beauty_store
 * @subpackage backend_bs
 * @author     Alexey Ostapets
 * @version    SVN: $Id: components.class.php,v 1.1 2010-01-05 11:28:27 alf Exp $
 */
class testComponents extends sfComponents
{
    public function executeShowresult()
    {        
        $result = ResultPeer::retrieveByPK($this->getUser()->getAttribute('result_id'));
        $this->total_count = $result->getTotal();
        $this->total_mark = $result->getTest()->getMark($this->total_count);
    }
}
?>